#!/bin/sh -e

python setup.py build
python setup.py install \
    --root="$1" \
    --optimize=1 \
    --skip-build

# Remove polkit directory
rm -rf "$1/usr/share/polkit-1"

clinst -Dm755 cl-meson "$1/usr/bin/cl-meson"
